package com.mindskip.xzs.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mindskip.xzs.domain.User;
import com.mindskip.xzs.viewmodel.IdNameKV;
import com.mindskip.xzs.viewmodel.admin.user.EmployeeReq;
import com.mindskip.xzs.viewmodel.admin.user.EmployeeRes;
import com.mindskip.xzs.viewmodel.admin.user.UserCreditVM;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface NewUserMapper extends BaseMapper<User> {
    List<EmployeeRes> selectUserList(@Param("req") EmployeeReq req);
    List<UserCreditVM> selectUserCredit(@Param("userIds") List<Long> userIds);
    List<IdNameKV> queryUserKVList();

    List<IdNameKV> queryUserKVListForSearch(@Param("deptId") Long deptId, @Param("keyword") String keyword);

    List<IdNameKV> selectAutoExamUsers(@Param("examId") Integer examId);
}
